<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>焦点</title>
    <style>
        .wenben{
            margin: 50px;
            width: 200px;
            height: 100px;
            border: 2px rgb(50, 205, 122) solid;
            text-align: center
        }
        input{
            transition: box-shadow 2s;/*动态特效*/
        }
        input:focus{
            background-color:aqua;
            outline-style:red 50px;
        }
        input:hover{
            background-color: skyblue;
            border: 2px white dashed;
            
            box-shadow: -2px -2px 3px 3px rgba(0, 0, 0, 0.322);
        } 
    </style>
</head>
<body>
    <div class="wenben">
        文本框<input type="text"><br>
        文本框<input type="text"><br>
    </div>
</body>
</html>